<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li><a href="#/activity/list">商品活动</a></li>
    <li class="active">{{activityId ? "编辑" : "新增"}}</li>
  </ol>

  <form class="form-horizontal" role="form" name="form" ng-submit="save()" novalidate>

    <div class="form-group" ng-class="{'has-error':form.activitiesName.$invalid}">
      <label class="col-sm-2 control-label">
        <span class="required">*</span>
        活动名称
      </label>
      <div class="col-sm-5">
        <input type="text" class="form-control" autocomplete="off" value="" name="activitiesName" ng-model="activity.activitiesName" required="required" placeholder="活动名称">
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.activitiesCode.$invalid}">
      <label class="col-sm-2 control-label">
        <span class="required">*</span>
        活动代码
      </label>
      <div class="col-sm-5">
        <input type="text" class="form-control" autocomplete="off" value="" name="activitiesCode" ng-model="activity.activitiesCode" required="required" placeholder="活动代码">
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.activitiesDesc.$invalid}">
      <label class="col-sm-2 control-label">
        <span class="required">*</span>
        活动产品说明
      </label>
      <div class="col-sm-5">
        <input type="text" class="form-control" autocomplete="off" value="" name="activitiesDesc" ng-model="activity.activitiesDesc" required="required" placeholder="活动产品说明">
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.activitiesSkipName.$invalid}">
      <label class="col-sm-2 control-label">
        活动产品专题跳转名称
      </label>
      <div class="col-sm-5">
        <input type="text" class="form-control" autocomplete="off" value="" name="activitiesSkipName" ng-model="activity.activitiesSkipName" placeholder="活动产品专题跳转名称">
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.activitiesSkipLink.$invalid}">
      <label class="col-sm-2 control-label">
        活动专题跳转链接
      </label>
      <div class="col-sm-5">
        <input type="text" class="form-control" autocomplete="off" value="" name="activitiesSkipLink" ng-model="activity.activitiesSkipLink" placeholder="活动专题跳转链接">
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.activitiesStartDateStr.$invalid}">
      <label class="col-sm-2 control-label">
        <span class="required">*</span>
        活动开始时间
      </label>
      <div class="col-sm-5">
        <input type="date" class="form-control" autocomplete="off" value="" name="activitiesStartDateStr" ng-model="activity.activitiesStartDateStr" required="required" placeholder="活动开始时间,格式如2014-09-01" ng-pattern="/^\d{4}-\d{2}-\d{2}$/">
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.activitiesEndDateStr.$invalid}">
      <label class="col-sm-2 control-label">
        <span class="required">*</span>
        活动结束时间
      </label>
      <div class="col-sm-5">
        <input type="date" class="form-control" autocomplete="off" value="" name="activitiesEndDateStr" ng-model="activity.activitiesEndDateStr" required="required" placeholder="活动结束时间,格式如2014-09-01" ng-pattern="/^\d{4}-\d{2}-\d{2}$/">
      </div>
    </div>

    <div class="form-group">
      <label for="advertSortInput" class="col-sm-2 control-label">状态</label>
      <div class="col-sm-5">
        <label class="radio-inline">
          <input type="radio" name="activitiesStatus" value="01" ng-model="activity.activitiesStatus">上架
        </label>
        <label class="radio-inline">
          <input type="radio" name="activitiesStatus" value="02" ng-model="activity.activitiesStatus">下架
        </label>
      </div>
    </div>

    
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-5">
        <button type="submit" class="btn btn-default">提交</button>
      </div>
    </div>

  </form>
</div>
